package com.oa.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel("领用表")
@TableName("admin_collar_use_apply")
@Data
public class CollarUseApply extends Model<CollarUseApply> {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty("领用人ID")
    private String userId;

    @ApiModelProperty("备注")
    private String remark;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
